<%@ page language="java"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles" prefix="tiles" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-nested" prefix="nested" %>
<html:html locale="true">

<head>
    <title>Mobius</title>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <meta name="viewport" content="minimum-scale=1.0, width=device-width, maximum-scale=1.6, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="YES">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="stylesheet" href="mobReporteActividades/mobReporteActividades.css">
    <link rel="apple-touch-icon" href="mobReporteActividades/Images/WebClipIcon.png">
    <script type="text/javascript" src="mobReporteActividades/Parts/utilities.js" charset="utf-8"></script>
    <script type="text/javascript" src="mobReporteActividades/Parts/setup.js" charset="utf-8"></script>
    <script type="text/javascript" src="mobReporteActividades/mobReporteActividades.js" charset="utf-8"></script>
    <script type="text/javascript" src="mobReporteActividades/Parts/Text.js" charset="utf-8"></script>
    <script type="text/javascript" src="mobReporteActividades/Parts/PushButton.js" charset="utf-8"></script>
    <script type="text/javascript" src="mobReporteActividades/Parts/ButtonHandler.js" charset="utf-8"></script>
    <script type="text/javascript" charset="utf-8">
    <%
        Integer VisitasDia=0;
        if(request.getAttribute("VisitasDia")!=null) {
            VisitasDia=(Integer)request.getAttribute("VisitasDia");
        };

        Integer VisitasRealizadas=0;
        if(request.getAttribute("VisitasRealizadas")!=null) {
            VisitasRealizadas=(Integer)request.getAttribute("VisitasRealizadas");
        };

        Integer PedidosRealizados=0;
        if(request.getAttribute("PedidosRealizados")!=null) {
            PedidosRealizados=(Integer)request.getAttribute("PedidosRealizados");
        };


    %>
    <% HttpSession sesion = request.getSession(true); %>
    <% String nombreUsuario = (String) sesion.getAttribute("usuario"); %>
    <% if (nombreUsuario == null) { nombreUsuario = ""; } else { nombreUsuario = " "+nombreUsuario; } %>
    <% Integer uid = (Integer) sesion.getAttribute("uid"); %>
    <% if (uid == null) { uid = 0; } else { uid = uid; } %>
    <% String nombreusuarioreal = (String) sesion.getAttribute("nombreusuario"); %>
    <% if (nombreusuarioreal == null) { nombreusuarioreal = ""; } else { nombreusuarioreal = " "+nombreusuarioreal; } %>

    
	addEventListener('load', function() {
		setTimeout(hideAddressBar, 0);
	}, false);
	function hideAddressBar() {
		window.scrollTo(0, 1);
	}
    </script>
    <script type="text/javascript">
    function inicio() {
        var txt_name = document.getElementById("txt_name");
        var txt_contact = document.getElementById("txt_contact");

        txt_name.innerHTML = "<%= nombreusuarioreal%>";
        txt_contact.innerHTML = "<%= nombreUsuario%>";
    }

    </script>
</head>
<body onload="load(); inicio();">
    <div id="content">
        <div apple-part="com.apple.Dashcode.part.rectanglewebshape" apple-style="image-theme: 1; image-shape: 3; image-button-type: 3; image-opacity: 1.00; image-top-color: 0.217608914,0.227588311,0.260624081,1; image-bottom-color: 0.134615093,0.14126803,0.163302049,1; image-radius: 0,0,0,0; image-border: 1; image-border-color: 0,0,0,1; image-border-width: 1; shine-strength: 0.90; shine-alpha-level: 0.67; shine-height: 0.50; glass-arc-height: 0.06; shadow-include-shadow: 0;" id="rectangleShape" apple-group="rectangleShape">
            <div apple-part="com.apple.Dashcode.part.webtext" class="apple-text apple-no-children" apple-text-overflow="ellipsis" id="txt_name"></div>
            <div apple-part="com.apple.Dashcode.part.webtext" class="apple-text apple-no-children" apple-default-image-visibility="hidden" apple-text-overflow="ellipsis" id="txt_contact"></div>
            <img src="mobReporteActividades/Images/imgReporte.png" id="img"></div>
        <div apple-part="com.apple.Dashcode.part.box" id="box" apple-group="box">
            <div apple-part="com.apple.Dashcode.part.webtext" class="apple-text apple-no-children" apple-default-image-visibility="hidden" apple-text-overflow="ellipsis" id="text" apple-style="part-width-dependent: true;part-height-dependent: true;"></div>
        </div>
        <div apple-part="com.apple.Dashcode.part.box" id="detailBox" apple-group="detailBox">
            <div apple-part="com.apple.Dashcode.part.webtext" class="apple-text apple-no-children" apple-default-image-visibility="hidden" apple-text-overflow="ellipsis" id="txt_adress" onclick="clickDireccion(event)"></div>
            <div apple-part="com.apple.Dashcode.part.webtext" class="apple-text apple-no-children" apple-default-image-visibility="hidden" apple-text-overflow="ellipsis" id="txt_telf" onclick="clickTelf(event)"></div>
            <div apple-part="com.apple.Dashcode.part.webtext" class="apple-text apple-no-children" apple-default-image-visibility="hidden" apple-text-overflow="ellipsis" id="txt_cell"></div>
            <div apple-part="com.apple.Dashcode.part.box" id="box1">
                <div apple-part="com.apple.Dashcode.part.box" id="box2"></div>
                <div apple-part="com.apple.Dashcode.part.webtext" class="apple-text apple-no-children" apple-default-image-visibility="hidden" apple-text-overflow="ellipsis" id="text1"><%out.println(VisitasDia.toString());%></div>
                <div apple-part="com.apple.Dashcode.part.webtext" class="apple-text apple-no-children" apple-default-image-visibility="hidden" apple-text-overflow="ellipsis" id="text2"><%out.println(VisitasRealizadas.toString());%></div>
                <div apple-part="com.apple.Dashcode.part.webtext" class="apple-text apple-no-children" apple-default-image-visibility="hidden" apple-text-overflow="ellipsis" id="text3"><%out.println(PedidosRealizados.toString());%></div>
            </div>
            <div apple-part="com.apple.Dashcode.part.pushbutton" class="apple-no-children" apple-text-overflow="ellipsis" apple-style="image-theme: 0; image-shape: 3; image-button-type: 0; image-opacity: 1.00; image-top-color: 0.109803922,0.109803922,0.109803922,1; image-bottom-color: 1,1,1,1; image-radius: 5,5,5,5; image-border: 1; image-border-color: 0,0,0,0.2; image-border-width: 1; shine-on: 1; shine-strength: 0.17; shine-alpha-level: 0.04; shine-height: 0.50; glass-arc-height: 0.00; embossed-on: 1; embossed-depth: 1; embossed-shadow: 0.68; embossed-highlight: 0.3; shadow-include-shadow: 0;" id="btnRegresar"></div>
        </div>
    </div>
</body>
</html:html>